package com.mycompany.project.client;

import com.google.gwt.event.shared.GwtEvent;


public class AnnotationKeywordBlurEvent extends GwtEvent<AnnotationKeywordBlurEventHandler> {
	public static Type<AnnotationKeywordBlurEventHandler> TYPE=new Type<AnnotationKeywordBlurEventHandler>();
	private String keyWordAnnotation; // annotation keyword value set
	private String oldKeyWordAnnotation; // old annotation keyword value set
	private boolean newInsertedValue; // if false the keyWordAnnottaion is a new value. Otherwise is a updated value
	
	
	public AnnotationKeywordBlurEvent(String oldKwordValue, String kwordValue, boolean updatedValue){
		oldKeyWordAnnotation=oldKwordValue;
		keyWordAnnotation=kwordValue;
		newInsertedValue=updatedValue;		
	}
	
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<AnnotationKeywordBlurEventHandler> getAssociatedType() {
		// TODO Auto-generated method stub
		return TYPE;
	}

	@Override
	protected void dispatch(AnnotationKeywordBlurEventHandler handler) {
		handler.onAnnotationKeyWordBlur(this);
	}

	public String getKeyWordAnnotationValue(){
		return (keyWordAnnotation);
	}
	
	public String getOldKeyWordAnnotationValue(){
		return (oldKeyWordAnnotation);
	}
	
	public boolean getIfIsNewInsertedValue(){
		return(newInsertedValue);
	}
	
}
